.profile-container {
  // 设置容器的固定宽度为 1500px
  width: 1500px;
  // 右侧外边距自适应，使页面居中
  margin-right: auto;
  // 设置容器内边距为20px，使内容与容器边缘保持一定距离
  padding: 20px;
  // border: #000 solid 1px;
  height: 99vh;
}

// 顶部操作栏样式
.top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

// 搜索框样式
.search-box {
  width: 1200px;
  display: flex;
  align-items: center;

  border-radius: 4px;
  padding: 8px;
  margin-right: 10px;

  i {
    margin-right: 5px;
    color: #666;
  }

  input {
    flex: 1;
    border: none;
    outline: none;
  }

  i:last-child {
    margin-left: 5px;
  }
}

// 订购会员按钮样式
.subscribe-button {
  padding: 8px 20px;
  background: #ffc107; // 黄色背景
  color: #8b4513; // 棕色字体
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
  flex-shrink: 0; // 防止按钮收缩

  i {
    margin-right: 5px;
  }
}

// 用户头像样式
.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; // 防止头像收缩
}

.tab-bar {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.main-tab-bar {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;

  .tab-item {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;

    &.active {
      border-bottom: 2px solid #000;
    }
  }
}

.content-area {
  min-height: 300px;
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

// 内容布局
.content-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start; // 顶部对齐

  .main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: 0; // 移除左边距
  }

  .filter-sidebar {
    flex-shrink: 0;
    position: sticky;
    top: 20px;
  }
}

// 子内容区域
.sub-content {
  flex: 1;
  margin-top: 120px;
  margin-left: 100px;
}

// 子Tab样式
.sub-tab-bar {
  display: flex;
  gap: 5px;
  width: 280px;
  margin-bottom: 20px;

  .sub-tab-item {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background: none;
    cursor: pointer;

    &.active {
      font-weight: bold;
    }
  }
}

// 上传区域样式
.upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: #666;

  p {
    margin: 10px 0;
  }

  .upload-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;

    button {
      padding: 8px 20px;
      background: #1890ff;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
  }
}

// 筛选区样式
.filter-group {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 20px;
  margin-right: 35px;
  .filter-item {
    width: 70px;
    height: 30px;
    line-height: 30px;
    margin-left: 10px;
    border-radius: 10px;
    text-align: center;

    label {
      font-size: 14px;
    }
  }

  .filter-item:hover {
    background: #ccc;
  }

  .checkbox-item {
    margin-top: 24px;

    label {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      color: #666;
      font-size: 14px;

      input {
        width: auto;
        margin: 0;
      }
    }
  }

  .add-filter-button {
    width: 100%;
    padding: 8px;
    border: 1px solid #1890ff;
    border-radius: 4px;
    background: transparent;
    color: #1890ff;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;

    &:hover {
      background: #e6f7ff;
    }
  }
}

// profile.scss 修改部分
.dropped-images,
.backend-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;

  img {
    width: 100px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;

    &:hover {
      transform: scale(1.02);
    }
  }
}

.recycle-content {
  .dropped-images {
    img {
      opacity: 0.8;
      &:hover {
        opacity: 1;
      }
    }
  }
}

/* 评论聊天样式 */
.comment-chat-container {
  width: 100%;
  height: 240px;
  display: flex;
  flex-direction: column;
  background: transparent;
  font-family: Arial, sans-serif;
  position: relative;
  border-radius: 8px;
}

.comment-display-area {
  flex: 1;
  position: relative;
  overflow-y: auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px 8px 0 0;
  border: 1px solid #e0e0e0;
  border-bottom: none;
}

.comment-item {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  max-width: 80%;
  word-wrap: break-word;
}

.user-comment {
  margin-left: auto;
  background-color: #e3f2fd;
  border: 1px solid #bbdefb;
}

.other-comment {
  margin-right: auto;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.comment-content {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 3px;
}

.comment-timestamp {
  font-size: 10px;
  color: #666;
  text-align: right;
}

.comment-control-panel {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
  position: relative;
}

.emoji-picker-toggle {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.emoji-picker-toggle:hover {
  background: #e0e0e0;
  transform: scale(1.1);
}

.emoji-picker-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px;
  background: white;
  border-radius: 8px;
  position: absolute;
  bottom: 45px;
  left: 10px;
  z-index: 100;
  width: 160px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.emoji-option {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 4px;
}

.emoji-option:hover {
  background: #f5f5f5;
  transform: scale(1.2);
}

.comment-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  background: white;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
}

.comment-input:focus {
  border-color: #2196f3;
}

.send-button {
  padding: 6px 12px;
  min-width: 50px;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.send-button:hover {
  background: #1976d2;
  transform: translateY(-2px);
}

.send-button:active {
  transform: translateY(0);
}
